<?php
class Place_Model_AdminCategory extends Zend_Db_Table{
    protected $_name  = "admin_category";
    protected $_primary = "category_id";
    
    public function getAllCategory(){
        $normalUtils = new My_Utils_NormalUtils();
        $DB = $normalUtils->getNormalDb(0);
        
        $select = $DB   ->select()
                        ->from('admin_category')
                        ->where('parent_id != 0')
                        ->order('list_order');
        $result = $DB->fetchAll($select);
        return $result;
    }
}
